/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * LogonDialog.java
 *
 * Created on 7-mei-2009, 14:35:23
 */

package gui;


/**
 * Dialoog voor de kloprondes tijdens het spel
 * @author Bart Piggen
 */
public class KlopDialog extends javax.swing.JDialog {



    /** Creates new form LogonDialog */
    public KlopDialog(java.awt.Frame parent, boolean modal, String message) {
        super(parent, modal);
        initComponents();
        messageLabelKlop.setText(message + " klopt. Wat wilt u doen?");
    }

    public void setMessage(String message)
    {
      //  messageLabelKlop.setText(message);
    }

//    public String getGebruikerNaam()
//    {
//        return(nameTextField.getText());
//    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        butMeegaan = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        messageLabel = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        butPassen = new javax.swing.JButton();
        btnKloppen = new javax.swing.JButton();
        messageLabelKlop = new javax.swing.JLabel();
        messageDialoogKlop = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setAlwaysOnTop(true);
        setName("messageLabelKloppen"); // NOI18N
        setResizable(false);

        butMeegaan.setFont(butMeegaan.getFont());
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(gui.GUIApp.class).getContext().getResourceMap(KlopDialog.class);
        butMeegaan.setText(resourceMap.getString("butMeegaan.text")); // NOI18N
        butMeegaan.setName("butMeegaan"); // NOI18N
        butMeegaan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butMeegaanActionPerformed(evt);
            }
        });

        jLabel1.setName("jLabel1"); // NOI18N

        messageLabel.setName("messageLabel"); // NOI18N

        jLabel2.setName("lblVraag"); // NOI18N

        butPassen.setText(resourceMap.getString("butPassen.text")); // NOI18N
        butPassen.setName("butPassen"); // NOI18N
        butPassen.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butPassenActionPerformed(evt);
            }
        });

        btnKloppen.setText(resourceMap.getString("btnKloppen.text")); // NOI18N
        btnKloppen.setName("btnKloppen"); // NOI18N
        btnKloppen.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnKloppenActionPerformed(evt);
            }
        });

        messageLabelKlop.setName("messageLabelKlop"); // NOI18N

        messageDialoogKlop.setText(resourceMap.getString("messageDialoogKlop.text")); // NOI18N
        messageDialoogKlop.setName("messageDialoogKlop"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(messageLabel)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(butMeegaan, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(butPassen, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(btnKloppen, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel2)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 63, Short.MAX_VALUE)
                                        .addComponent(messageLabelKlop)
                                        .addGap(251, 251, 251))
                                    .addComponent(messageDialoogKlop))))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(messageLabel)
                        .addGap(9, 9, 9)
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel1))
                    .addComponent(messageLabelKlop)
                    .addComponent(messageDialoogKlop))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnKloppen, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(butMeegaan, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(butPassen, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(38, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void butMeegaanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butMeegaanActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_butMeegaanActionPerformed

    private void butPassenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butPassenActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_butPassenActionPerformed

    private void btnKloppenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnKloppenActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_btnKloppenActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnKloppen;
    private javax.swing.JButton butMeegaan;
    private javax.swing.JButton butPassen;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel messageDialoogKlop;
    private javax.swing.JLabel messageLabel;
    private javax.swing.JLabel messageLabelKlop;
    // End of variables declaration//GEN-END:variables

}
